How to Add a Group Day Event Component in Framer
In this tutorial, you will learn how to set up a Group Day Event service in Bookla and connect it to a Group Day Event component in Framer.
Prerequisites
Before setting up Framer, make sure everything is configured correctly in the Bookla Platform.
Create a Company in Bookla
This step is essential because it links your Company ID to the Framer component.
- Open Bookla Platform and click "Create Account".
- Create an account using your credentials, or log in if you already have one.
- Create a new company or use an invitation code to access an existing one.
Set Up Resources
Resources represent the locations, rooms, equipment, or staff members that provide the service.
- Go to your Bookla account.
- Open the "Resources" section.
- Click the "+ New Resource" button.
- Enter a title for the resource. If needed, you can also change the resource color.
- Click the "Create" button.
Note
For Group services, you do not need to add working hours for resources. The availability of the service will be controlled through the service schedule instead.
Service Setup
- Go to the "Services" section.
- Click the "+ New Service" button.
- Enter the service name. If needed, you can also change the service color.
- Click the "Next" button.
- Select the service type. For this tutorial, choose "Group".
- Click the "Next" button.
- Set the service duration.
- Choose the booking policy.
- Click the "Create" button.
Linking a Service with a Resource
- Click the "Link with Resource" button.
- Select the resources that provide this service.
- Click the "Link Resources" button.
Setting Up the Service Schedule
Group services use the schedule configured inside the service settings.
- Open the created Group service.
- Go to the "Schedule" section.
- Click the "+ Add Slot" button.
- Select the duration and resource.
- Set the starting date and time.
- Select whether the slot does not repeat, repeats weekly, or uses custom Recurrence Rules.
Learn about Recurrence Rules here.
- Click the "Create" button.
Setting the Group Capacity
Group services allow multiple clients to book the same time slot.
- Go to the "Capacity" section.
- Click "+ Add capacity rule".
- Enter the maximum number of spots allowed per booking time slot.
- Click the "Create" button.
Adding the Currency and Setting Up the Tax Rate
- Go to the "Pricing" section.
- Click "Click to set" under Currency.
- Select your desired currency.
- Click the "Save" button.
- Click "Click to set" under Tax rate.
- Enter your country's or state's required tax rate.
- Choose whether the tax is included in the price.
- Click the "Save" button.
Setting Up Price Rules
- Click the "+ Add price rule" button.
- Configure the following parameters:
- Price
- Compared price (optional)
- Optionally, set restrictions for specific days, times, or resources.
- Click the "Create" button.
Service Settings
In the "Settings" section, you can configure additional options for your Group service:
- Booking Policy: Defines how bookings are confirmed. For example, with the Instant policy, bookings are automatically confirmed without requiring manual approval.
- Availability Period: Determines how far in advance clients can book the service.
- Duration: Defines the length of each booking slot.
- Buffer Before: Adds a required time period before each booking, preventing bookings from being created too close to the previous activity.
- Exclusive Slot: When enabled, each available time slot can only be booked exclusively.
- Allow Ongoing Slot: Allows clients to book an ongoing time slot when enabled.
Open-source Group Day Event component integration
We recently released open-source booking components that you can use on your website.
For example, we have a dedicated category of Framer components that can be added as code components in your Framer projects. You can edit and modify them, or even use them as prompts for ChatGPT or another AI tool to generate variations or add new features.
In this tutorial, we’ll use the Group Day Event component.
The component allows clients to select a date and book an available Group Day Event.
How to use the Group Day Event component
- Go to Open-source Components.
- Find the Group Day Event component.
- Scroll down to "Component.tsx".
- Click on "Component.tsx".
- Copy the code.
- Go to Framer.
- Open the "Assets" section.
- In the code section, click "+".
- Click "New Code File".
- Enter a title, for example "BookingComponent".
- Click "Create".
Note
By default, it is an animated square.
- To change it, replace the default code with the copied code for the Group Day Event component.
- Go back to the page.
- Select the container where you want to place the component.
- Go to the "Assets" section.
- Drag and drop the component onto the page.
- Adjust the component’s width and height.
- Make any desired styling changes, such as removing padding or changing the selected color and button color.
How to connect the component to Bookla
- Go to the Bookla section.
- Check the API region in Bookla (US or EU).
- Paste it into the API Region field.
- To copy and paste the API key:
- Go to the Bookla Platform.
- Go to the Developers section.
- Click "Create API key".
- Enter a name, for example "Group Day Event key".
- Select only the following client permissions: Client Service, Client Resource, and Guest Client.
- Copy the API key. You will have access to it only once.
- Paste it into Framer in the "API key" field.
- To copy and paste the Company ID:
- Go to the Bookla Platform.
- Click on "Company".
- Copy the ID at the top.
- Paste it into Framer in the "Company ID" field.
- To copy and paste the Service ID:
- Go to the Bookla Platform.
- Go to the "Services" section.
- Select the relevant Group service.
- Copy the Service ID.
- Paste it into Framer in the "Service ID" field.
Testing the component
- Go to the page.
- Select an available date.
- Click "Continue".
- Enter the required information.
- Click "Make booking".
- The reservation is created, and you can also see it in the Bookla Platform.